package stu.day9_day18;

public class LeetCode1603 {

    int[] array = new int[4];
    public LeetCode1603 (int big, int medium, int small) {

        array[1] = big;
        array[2] = medium;
        array[3] = small;

    }

    public boolean addCar(int carType) {
        if(array[carType]>0){
            array[carType] -= 1;
            return true;
        }else {
            return false;
        }

    }
}
